package site.lanmushan.quiz.api.service;

import site.lanmushan.common.query.service.IBaseService;
import site.lanmushan.quiz.api.entity.QuizTbQuestion;
import site.lanmushan.quiz.api.vo.QuestionAnswersVo;
import site.lanmushan.quiz.api.vo.QuizTbQuestionListVo;

import java.util.List;

/**
 * ( QuizTbQuestion)表服务接口
 *
 * @author $author
 * @since 2020-06-14 21:15:05
 */
public interface IQuizTbQuestionService extends IBaseService<QuizTbQuestion> {
    /**
     * 根据题库编码查询问题数量
     * @param bankCode
     * @return
     */
    public Integer selectCountByBankCode(String bankCode);

    List<QuizTbQuestionListVo> selectBankInfoByBankCode(String bankCode);

    QuestionAnswersVo selectQuestionAndOptionsById(Long id);
}